package com.zzty.txj1.dao;

import com.zzty.txj1.entity.SelfExam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SelfExamMapper {
    @Insert("insert into selfExam(questionId,classId,date) values(#{questionId},#{classId},#{date})")
    Integer addQuestionId(SelfExam selfExam);

    @Select("select count(*) from selfExam where date=#{date}")
    Integer checkDate(String date);
}
